package org.jeese.modules.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeese.modules.sys.entity.SysRole;
@Mapper
public interface SysRoleDao {
	
	List<String> getUserRoles(@Param("userId") Long userId);

	List<SysRole> getUserRoleList(@Param("userId") Long userId);

	SysRole getRoleById(@Param("roleId") Long roleId);

	SysRole getByNameAndIdentiy(@Param("name") String name, @Param("identify") String identify);

	int addRole(SysRole role);

	int editRole(SysRole role);

	int deleteById(@Param("roleId") Long roleId);

	List<String> getAdminRoles();

	List<SysRole> getRoleList();

	List<Long> getUserRoleIdList(@Param("userId") Long userId);
	
}
